<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<?php
include 'common/header.html';
include 'common/left.html';
include_once '/var/www/html/new/d/common/area.inc.php';
$lid = $_REQUEST['lid'] + 0;
if(empty($lid)) exit('非法访问');
// 获取已关联子景点信息
$list_arr = array();
$sql="select scenicid_list from uu_land where id=$lid limit 1";
$GLOBALS['le']->query($sql);
$GLOBALS['le']->fetch_assoc();
$list_str = $GLOBALS['le']->f('scenicid_list');
if($list_str!=''){
	$sql="select * from pft_scenic where id in ($list_str) order by FIELD(id,$list_str)";
	$GLOBALS['le']->query($sql);
	while($row=$GLOBALS['le']->fetch_assoc()){
		$row['province_cn'] = $areas[$row['province']];
		$row['city_cn'] = $areas[$row['city']];
		$list_arr[] = $row;
	}
}
$size = count($list_arr);
?>
		<!--<script type="text/javascript" src="http://www.12301.cc/js/plugin/json2.js"></script>-->
<!--[if lt IE 7]><div id="childListWrap" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 childListWrap"> <![endif]-->
<!--[if IE 7]><div id="childListWrap" class="lt-ie10 lt-ie9 lt-ie8 ie7 childListWrap"> <![endif]-->
<!--[if IE 8]><div id="childListWrap" class="lt-ie10 lt-ie9 ie8 childListWrap"> <![endif]-->
<!--[if IE 9]><div id="childListWrap" class="lt-ie10 ie9 childListWrap"><![endif]-->
<!--[if gt IE 9]><!--><div id="childListWrap" class="childListWrap"> <!--<![endif]-->
<style type="text/css">
.cpicon{ display:inline-block; position:relative; font-style:normal; background:url(http://www.12301.cc/images/icons/prod_child_list_csssprite.png) no-repeat 0 0}
.cpicon.flag{ width:25px; height:84px; background-position:0 0;}
.cpicon.edit{ width:26px; height:26px; background-position:-25px -26px;}
.cpicon.edit-hover{ width:26px; height:26px; background-position:-25px 0;}
.cpicon.up{ width:26px; height:26px; background-position:-77px -26px;}
.cpicon.up-hover{ width:26px; height:26px; background-position:-77px 0;}
.cpicon.down{ width:26px; height:26px; background-position:-51px -26px;}
.cpicon.down-hover{ width:26px; height:26px; background-position:-51px 0;}
.cpicon.close{ width:26px; height:26px; background-position:-103px -26px;}
.cpicon.close-hover{ width:26px; height:26px; background-position:-103px 0px;}
.clearfix:after{ content:""; height:0; clear:both; visibility:hidden; display:block;}
.clearfix{ *zoom:1; width:100%; overflow:hidden;}
#childListWrap{ position:relative; float:right; width:780px; overflow:hidden; margin-top:10px;}
#childListWrap .citem{ position:relative; height:70px; padding-left:40px; padding-right:20px; margin-bottom:3px;}
#childListWrap .citem .flag{ position:absolute; top:3px; left:0; height:68px; color:#fff; font-family:arial; text-align:center; padding-top:3px;}
#childListWrap .citem .con{ width:100%;}
#childListWrap .citem .con .col_1{ float:left; width:65%; margin-right:10px; padding-top:2px;}
#childListWrap .citem .con .col_2{ float:left; width:10%; margin-right:10px; margin-top:2px;}
#childListWrap .citem .con .col_3{ float:right; width:20%; margin-top:8px; text-align:right }
#childListWrap .citem .con .jqname{ font-size:16px; color:#313131; line-height:1.4}
#childListWrap .citem .con .jqarea{ font-size:14px; color:#707070; line-height:1.7}
#childListWrap .citem .con .col_2 .daoma{ border:1px solid #e2e2e2}
#childListWrap .citem .con .col_2 a:hover .daoma{ border-color:#00a0e9}
#childListWrap .citem .do{ cursor:pointer}
#childListWrap .citem .do .hover{ display:none;}
#childListWrap .citem .do:hover .cpicon{ display:none}
#childListWrap .citem .do:hover .hover{ display:inline-block}
#childListWrap .lastItem{ height:35px;}
#childListWrap .lastItem .flag{ height:22px; top:5px}
#childListWrap .citem.lastItem .line{ float:left; width:590px; height:36px; background:#eee;  border:1px solid #dfdfdf}
#childListWrap .citem.lastItem .addChildBtn{ float:right; width:115px; height:38px; display:block; background:#0998d9; text-align:center; color:#fff; line-height:38px;}
#childListWrap .citem.lastItem .addChildBtn:hover{ background:#0c8cc6; text-decoration:none}
#saveToNextBtn{ display:block; width:180px; height:40px; margin:50px auto 0; line-height:40px; background:#0998d9; text-align:center; color:#fff}
#saveToNextBtn:hover{ background:#0c8cc6; text-decoration:none}
#querykeyInp{ width:100%; height:100%; background:#f7f7f7; border:0 none; padding:2px 5px;}
#querykeyInp:focus{ background:#fff}
#queryResultUl{ display:none; width:590px; overflow:auto; margin-left:40px; margin-right:20px; border:1px solid #dfdfdf; border-top:0 none; background:#fcfcfc}
#queryResultUl li.qitem{ width:auto; overflow:hidden; height:40px; line-height:40px; padding:0 10px; border-top:1px solid #fff; border-bottom:1px solid #e7e7e7; background:#fcfcfc}
#queryResultUl li.qitem:last-child{ border-bottom:0 none}
#queryResultUl li.qitem .lt{ float:left;}
#queryResultUl li.qitem .rt{ float:right; display:inline-block; width:70px; height:28px; line-height:28px; margin-top:6px; margin-left:5px; text-align:center; color:#fff; background:#0998d9}
#queryResultUl li.empty{ height:150px; line-height:150px; text-align:center; color:#b7b7b7; padding:0 10px; background:#f8f8f8}
#queryEmptyToCreatBtn{ display:inline-block; width:70px; height:28px; line-height:28px; margin-left:5px; text-align:center; color:#fff; background:#0998d9}
#queryEmptyToCreatBtn:hover{ text-decoration:none; background:#0c8cc6}
.ul_list{float:left;border-bottom:1px solid #888888;width:750px;}
.ul_list li{float:left;}
.ul_list li.li_name{margin-left:50px;} 
.ul_list li.li_time{margin-left:180px;}
.ul_list li.li_live{margin-left:200px;}
.ul_list li.li_do{margin-left:130px;}  
.childListUl{margin-top:30px;}
</style>
	<input type="hidden" id="lid" value="<?=$_REQUEST['lid']?>" />
	<input type="hidden" name="sort" value='<?=json_encode($sort)?>'/>
	<ul class="ul_list">
		<li class="li_name">活动名称</li>
		<li class="li_time">活动时间</li>
		<li class="li_live">状态</li>
		<li class="li_do">操作</li>
	</ul>
<ul id="childListUl" class="childListUl">
	<?if($size>0):?>
	<?foreach($list_arr as $key=>$ct):?>
	<li class="citem" data-id="<?=$ct['id']?>">
		<div class="con clearfix">
			<div class="col col_1">
				<p class="jqname"><?=$ct['scenic_name']?></p>
				<p class="jqarea"><?=$ct['province_cn']?> <?=$ct['city_cn']?></p>
			</div>
			<div class="col col_2"><a href="###">关闭</a><a href="###">开启</a></div>
			<div class="col col_3">
				<a class="do down" href="###"><i class="cpicon down"></i><i class="cpicon down-hover hover"></i></a>
				<a class="do up" href="###"><i class="cpicon up"></i><i class="cpicon up-hover hover"></i></a>
				<a class="do edit" href="prod_edits_child.html?lid=<?=$_REQUEST['lid']?>&type=b&id=<?=$ct['id']?>" target="_blank"><i class="cpicon edit"></i><i class="cpicon edit-hover hover"></i></a>
				<a class="do close" href="###"><i class="cpicon close"></i><i class="cpicon close-hover hover"></i></a>
			</div>
		</div>
		<span class="flag cpicon"><?=$key+1?></span>
	</li>
	<?endforeach;?>
	<?endif;?>
</ul>

	<div class="lastItem citem">
	
		<div class="con clearfix">
			<div class="line"><input id="querykeyInp" class="querykeyInp" type="text" value="搜索已添加景点"/></div>
			<a id="addChildBtn" class="addChildBtn" href="http://www.12301.cc/prod_edits_child.html?lid=<?=$lid?>&type=b&nf=<?=$_REQUEST['nf']?>" target="_blank">添加</a>
			</div> 
		<span class="flag cpicon"><?=$size+1?></span>
	</div>
	
	<ul id="queryResultUl" class="queryResultUl"></ul>
	<form id="submitForm" action="call/jh_prod_f.php" method="post">
		<input id="formSortid" type="hidden" name="sort" />
		<input type="hidden" name="action" value="chScenic"/>
		<input type="hidden" name="next" value="<?=$_REQUEST['nf']?>"/>
		<input type="hidden" id="lid_hideInp" name="lid" value="<?=$_REQUEST['lid'] + 0?>"/>
	</form>
	<a id="saveToNextBtn" class="saveToNextBtn" href="###">保存</a>
	<!-- <iframe style="display:none" name="main"></iframe> -->
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<!--<script type="text/javascript" src="http://www.12301.cc/js/prod_discount.js"></script>-->
<script type="text/javascript" src="http://www.12301.cc/js/prod_edits_child_list.js"></script>
</div>
<?php include('common/footer.html')?>